//package tk.mybatis.springboot.conf;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//
//import javax.annotation.PostConstruct;
//
///**
// * Created by NightDream on 2017/9/15.
// */
//@Configuration
//public class FreeMarkerConfig {
//
//    @Autowired
//    protected freemarker.template.Configuration configuration;
//    @Autowired
//    protected org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver resolver;
//    @Autowired
//    protected org.springframework.web.servlet.view.InternalResourceViewResolver springResolver;
//
//
//    @PostConstruct
//    public void  setSharedVariable() {
//
//        //下面三句配置的就是我自己的freemarker的自定义标签，在这里把标签注入到共享变量中去就可以在模板中直接调用了
//        //configuration.setSharedVariable("content_list", new ContentListDirective());
//        //configuration.setSharedVariable("article_list", new ArticleDirective());
//        //configuration.setSharedVariable("channel_list", new ChannelListDirective());
//    }
//}
